package arduino;

public class InternalCommunicationSerice {

	private AProtocol client2server; 
	private AProtocol server2client;
	
	private static InternalCommunicationSerice instance = null;
	
	private InternalCommunicationSerice(){}
	
	public synchronized static InternalCommunicationSerice getInstance()
	{
		if(instance==null)
			instance=new InternalCommunicationSerice();
		return instance;
	}
	
	public synchronized AProtocol getClient2server() {
		return client2server;
	}
	public synchronized void setClient2server(AProtocol client2server) {
		this.client2server = client2server;
	}
	public synchronized AProtocol getServer2client() {
		return server2client;
	}
	public synchronized void setServer2client(AProtocol server2client) {
		this.server2client = server2client;
	}
	
	
}
